package net.lijingye.education.response.meta;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * Created by LijingYe on 2016/3/26.
 */
public abstract class BaseMeta {
    @JSONField(name = "ErrCode", ordinal = 1, serialzeFeatures = SerializerFeature.WriteMapNullValue)
    private String code;

    @JSONField(name = "ErrMsg", ordinal = 2)
    private String message;

    public BaseMeta() {
    }

    public BaseMeta(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "BaseMeta{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
